package com.BigDate.server.mapper;


import com.BigDate.server.pojo.Comment;
import com.BigDate.server.pojo.CommentNodeTreeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProjectCommentMapper extends BaseMapper<CommentNodeTreeVo>
{
    List<CommentNodeTreeVo> findComment(Integer projectId);

    List<CommentNodeTreeVo> findChildComment(Integer commentId);

    List<CommentNodeTreeVo> findAll(Page<CommentNodeTreeVo> page);

    int add(Comment comment);

    int deleteById(Integer id);
}

